# Constants.py - Store APPID, Error code, etc.
# Copyright (C) NulStudio 2014-2022. All rights reserved.

# Mini Program Information Set:
APP_ID = "wxc9544d38cd09de92"
APP_SECRET = "b0f4ad82c009d037821c35de56d8ccff"

# Basic Error Code:
ERR_OK = 0

ERR_UNKNOWN_ERROR = -1

ERR_INVALID_JSON_STRING = 1
ERR_INVALID_JSON_STRUCTURE = 2
ERR_INVALID_REQUEST_METHOD = 3
ERR_UNSUPPORTED_API_VERSION = 4
ERR_SYSTEM_BUSY = 5

ERR_LOGIN_INVALID_CODE = 10001
ERR_LOGIN_REQUEST_TOO_FREQUENT = 10002
ERR_LOGIN_HIGH_RISK = 10003

ERR_LOGIN_TOKEN_MISSING = 10101
ERR_LOGIN_TOKEN_INVALID = 10102
ERR_LOGIN_TOKEN_EXPIRED = 10103


ERS_INVALID_JSON_STRING = "Invalid request JSON string."
ERS_INVALID_JSON_STRUCTURE = "Invalid JSON structure."
ERS_INVALID_REQUEST_METHOD = "Invalid request method"
ERS_UNSUPPORTED_API_VERSION = 'Unsupported or unspecified API version.'

ERS_LOGIN_TOKEN_MISSING = "Token missing."
ERS_LOGIN_TOKEN_INVALID = "Invalid token."
ERS_LOGIN_TOKEN_EXPIRED = "Token expired."

# Protocol Version:
PTL_REQUEST_VERSION = 1
PTL_RESPONSE_VERSION = 1
